Logging In a User at the Login Window
Apple Remote Desktop can log in any user on a client computer by using AppleScript System Events and the Send UNIX Command feature. Using these powerful features you can log in any number of client computers to the same user name simultaneously from the login window.
This script is for use on computers at the login screen only.
This method uses the osascript command. For detailed information on osascript, see the osascript man page.
- Select a computer list in the Remote Desktop window.
- Select one or more computers in the selected computer list.
- Choose Manage > Send UNIX Command.
- Type the following AppleScript in the UNIX Command window, adding the user name and password:
- osascript <<EndOfMyScript
- tell application "System Events"
- keystroke "<user name>"
- keystroke tab
- delay 0.5
- keystroke "<password>"
- delay 0.5
- keystroke return
- end tell
- EndOfMyScript
- tell application "System Events"
- osascript <<EndOfMyScript
- Choose user "root" to run the command.
- Click Send.
The client computer executes the script.
See also:
For other client management tasks, see: